<?php

namespace App\Http\Controllers\api\LiveIn;

use App\Http\Controllers\Controller;
use App\Models\Sick;
use App\Server\ApiService;
use Illuminate\Http\Request;

class LiveInController extends Controller
{
    public function liveInIndex(Request $request)
    {
        $id = $request->get('id');

        $data = Sick::where('id',$id)->get()->toArray();
        if ($data)
        {
            return ApiService::success('获取入院人信息成功',$data);
        } else {
            return  ApiService::fail('获取入院人信息失败');
        }
    }
}
